home *** CD-ROM | disk | FTP | other *** search
/ Clickx 63 / Clickx 63.iso / software / multimedia / mirov204 / Miro_Installer.exe / xulrunner / chrome / toolkit.jar / content / global / viewSource.xul < prev    next >
Encoding:
Extensible Markup Language  |  2008-04-23  |  9.0 KB  |  175 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  4. <?xml-stylesheet href="chrome://global/content/viewSource.css" type="text/css"?>
  5. <?xml-stylesheet href="chrome://mozapps/skin/viewsource/viewsource.css" type="text/css"?>
  6. <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
  7. <?xul-overlay href="chrome://global/content/charsetOverlay.xul"?>
  8.  
  9. <!DOCTYPE window [
  10. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  11. %brandDTD;
  12. <!ENTITY % sourceDTD SYSTEM "chrome://global/locale/viewSource.dtd" >
  13. %sourceDTD;
  14. ]>
  15.  
  16. <window id="viewSource"
  17.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  18.         onload="onLoadViewSource();"
  19.         contenttitlesetting="true"
  20.         title="&mainWindow.title;" 
  21.         titlemodifier="&mainWindow.titlemodifier;" 
  22.         titlepreface="&mainWindow.preface;"
  23.         titlemenuseparator ="&mainWindow.titlemodifierseparator;"  
  24.         windowtype="navigator:view-source"
  25.         width="640" height="480"
  26.         screenX="10" screenY="10"
  27.         persist="screenX screenY width height sizemode">
  28.  
  29.   <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
  30.   <script type="application/javascript" src="chrome://global/content/printUtils.js"/>
  31.   <script type="application/javascript" src="chrome://global/content/viewSource.js"/>
  32.   <script type="application/javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  33.   <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
  34.   <script type="application/javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  35.   
  36.   <stringbundle id="viewSourceBundle" src="chrome://global/locale/viewSource.properties"/>
  37.  
  38.   <command id="cmd_savePage" oncommand="ViewSourceSavePage();"/>
  39.   <command id="cmd_print" oncommand="PrintUtils.print();"/>
  40.   <command id="cmd_printpreview" oncommand="PrintUtils.printPreview(onEnterPP, onExitPP);"/>
  41.   <command id="cmd_pagesetup" oncommand="PrintUtils.showPageSetup();"/>
  42.   <command id="cmd_close" oncommand="window.close();"/>
  43.   <commandset id="editMenuCommands"/>
  44.   <command id="cmd_find"
  45.            oncommand="document.getElementById('FindToolbar').onFindCommand();"/>
  46.   <command id="cmd_findAgain"
  47.            oncommand="document.getElementById('FindToolbar').onFindAgainCommand(false);"/>
  48.   <command id="cmd_findPrevious"
  49.            oncommand="document.getElementById('FindToolbar').onFindAgainCommand(true);"/>
  50.   <command id="cmd_reload" oncommand="ViewSourceReload();"/>
  51.   <command id="cmd_goToLine" oncommand="ViewSourceGoToLine();" disabled="true"/>
  52.   <command id="cmd_highlightSyntax" oncommand="highlightSyntax();"/>
  53.   <command id="cmd_wrapLongLines" oncommand="wrapLongLines()"/>
  54.   <command id="cmd_textZoomReduce" oncommand="ZoomManager.reduce();"/>
  55.   <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.enlarge();"/>
  56.   <command id="cmd_textZoomReset" oncommand="ZoomManager.reset();"/>
  57.  
  58.   <keyset id="editMenuKeys"/>
  59.   <keyset id="viewSourceKeys">
  60.     <key id="key_savePage" key="&savePageCmd.commandkey;" modifiers="accel" command="cmd_savePage"/>
  61.     <key id="key_print" key="&printCmd.commandkey;" modifiers="accel" command="cmd_print"/>
  62.     <key id="key_close" key="&closeCmd.commandkey;" modifiers="accel" command="cmd_close"/>
  63.     <key id="key_goToLine"     key="&goToLineCmd.commandkey;"  command="cmd_goToLine"  modifiers="accel"/>
  64.  
  65.     <key id="key_textZoomEnlarge" key="&textEnlarge.commandkey;" command="cmd_textZoomEnlarge" modifiers="accel"/>
  66.     <key id="key_textZoomEnlarge2" key="&textEnlarge.commandkey2;" command="cmd_textZoomEnlarge" modifiers="accel"/>
  67.     <key id="key_textZoomEnlarge3" key="&textEnlarge.commandkey3;" command="cmd_textZoomEnlarge" modifiers="accel"/>
  68.     <key id="key_textZoomReduce"  key="&textReduce.commandkey;" command="cmd_textZoomReduce" modifiers="accel"/>
  69.     <key id="key_textZoomReduce2"  key="&textReduce.commandkey2;" command="cmd_textZoomReduce" modifiers="accel"/>
  70.     <key id="key_textZoomReset" key="&textReset.commandkey;" command="cmd_textZoomReset" modifiers="accel"/>
  71.     <key id="key_textZoomReset2" key="&textReset.commandkey2;" command="cmd_textZoomReset" modifiers="accel"/>
  72.  
  73.     <key id="key_reload" key="&reloadCmd.commandkey;" command="cmd_reload" modifiers="accel"/>
  74.     <key key="&reloadCmd.commandkey;" command="cmd_reload" modifiers="accel,shift"/>
  75.     <key keycode="VK_F5" command="cmd_reload"/>
  76.     <key keycode="VK_F5" command="cmd_reload" modifiers="accel"/>
  77.     <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
  78.     <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
  79.     <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
  80.     <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
  81.     <key keycode="&findAgainCmd.commandkey2;"  command="cmd_findPrevious" modifiers="shift"/>
  82.   </keyset>
  83.  
  84.   <popup id="viewSourceContextMenu">
  85.     <menuitem id="cMenu_findAgain"/>
  86.     <menuseparator/>
  87.     <menuitem id="cMenu_copy"/>
  88.     <menuseparator/>
  89.     <menuitem id="cMenu_selectAll"/>
  90.   </popup>
  91.  
  92.   <!-- Menu --> 
  93.   <toolbox id="viewSource-toolbox">
  94.     <menubar id="viewSource-main-menubar">
  95.  
  96.       <menu id="menu_file" label="&fileMenu.label;" accesskey="&fileMenu.accesskey;">
  97.         <menupopup id="filemenu-popup">
  98.           <menuitem key="key_savePage" command="cmd_savePage" id="menu_savePage"
  99.                     label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;"/>
  100.           <menuitem command="cmd_pagesetup" id="menu_pageSetup"
  101.                     label="&pageSetupCmd.label;" accesskey="&pageSetupCmd.accesskey;"/>
  102.           <menuitem command="cmd_printpreview" id="menu_printPreview"
  103.                     label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;"/>
  104.           <menuitem key="key_print" command="cmd_print" id="menu_print"
  105.                     label="&printCmd.label;" accesskey="&printCmd.accesskey;"/>
  106.           <menuseparator/>
  107.           <menuitem key="key_close" command="cmd_close" id="menu_close"
  108.                     label="&closeCmd.label;" accesskey="&closeCmd.accesskey;"/>
  109.         </menupopup>
  110.       </menu>
  111.  
  112.       <menu id="menu_edit">
  113.         <menupopup id="editmenu-popup">
  114.           <menuitem id="menu_undo"/>
  115.           <menuitem id="menu_redo"/>
  116.           <menuseparator/>
  117.           <menuitem id="menu_cut"/>
  118.           <menuitem id="menu_copy"/>
  119.           <menuitem id="menu_paste"/>
  120.           <menuitem id="menu_delete"/>
  121.           <menuseparator/>
  122.           <menuitem id="menu_selectAll"/>
  123.           <menuseparator/>
  124.           <menuitem id="menu_find"/>
  125.           <menuitem id="menu_findAgain"/>
  126.           <menuseparator/>
  127.           <menuitem id="menu_goToLine" key="key_goToLine" command="cmd_goToLine"
  128.                     label="&goToLineCmd.label;" accesskey="&goToLineCmd.accesskey;"/>
  129.         </menupopup>
  130.       </menu>
  131.  
  132.       <menu id="menu_view" label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
  133.         <menupopup id="viewmenu-popup">
  134.           <menuitem id="menu_reload" command="cmd_reload" accesskey="&reloadCmd.accesskey;"
  135.                     label="&reloadCmd.label;" key="key_reload"/>
  136.           <menuseparator />
  137.           <menu id="viewTextZoomMenu" label="&menu_textSize.label;" accesskey="&menu_textSize.accesskey;">
  138.             <menupopup>                    
  139.               <menuitem id="menu_textEnlarge" command="cmd_textZoomEnlarge" 
  140.                         label="&menu_textEnlarge.label;" accesskey="&menu_textEnlarge.accesskey;"
  141.                         key="key_textZoomEnlarge"/>
  142.               <menuitem id="menu_textReduce" command="cmd_textZoomReduce" 
  143.                         label="&menu_textReduce.label;" accesskey="&menu_textReduce.accesskey;"
  144.                         key="key_textZoomReduce"/>
  145.               <menuseparator/>
  146.               <menuitem id="menu_textReset" command="cmd_textZoomReset"
  147.                         label="&menu_textReset.label;" accesskey="&menu_textReset.accesskey;"
  148.                         key="key_textZoomReset"/>
  149.             </menupopup>
  150.           </menu>
  151.           <menu id="charsetMenu"/>
  152.           <menuseparator/>
  153.           <menuitem id="menu_wrapLongLines" type="checkbox" command="cmd_wrapLongLines"
  154.                     label="&menu_wrapLongLines.title;" accesskey="&menu_wrapLongLines.accesskey;"/>
  155.           <menuitem type="checkbox" id="menu_highlightSyntax" command="cmd_highlightSyntax"
  156.                     label="&menu_highlightSyntax.label;" accesskey="&menu_highlightSyntax.accesskey;"/>
  157.         </menupopup>
  158.       </menu>
  159.     </menubar>  
  160.   </toolbox>
  161.  
  162.   <vbox id="appcontent" flex="1"
  163.        ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
  164.  
  165.     <browser id="content" type="content-primary" name="content" src="about:blank" flex="1"
  166.              disablehistory="true" context="viewSourceContextMenu" showcaret="true"/>
  167.     <findbar id="FindToolbar" browserid="content"/>
  168.   </vbox> 
  169.  
  170.   <statusbar id="status-bar" class="chromeclass-status">
  171.     <statusbarpanel id="statusbar-line-col" label="" flex="1"/>
  172.   </statusbar>
  173.  
  174. </window>
  175.